package com.spider.javabean;

public class Student {
    String name;
    double chinese;
    double math;
    //有参构造器
    public Student(String name, double chinese, double math) {
        this.name = name;
        this.chinese = chinese;
        this.math = math;
    }
    //无参构造器

    public Student() {
    }
    //获取成员变量
    public String getName() {
        return name;
    }

    public double getChinese() {
        return chinese;
    }

    public double getMath() {
        return math;
    }
    //赋值成员变量

    public void setName(String name) {
        this.name = name;
    }

    public void setChinese(double chinese) {
        this.chinese = chinese;
    }

    public void setMath(double math) {
        this.math = math;
    }
}
